package org.codeart.pattern.interpreter.maths;

public class Client {

    public static void main(String[] args) {
        System.out.println("result: " + new Calculator("10 + 30").calculate());
        System.out.println("================================");

        System.out.println("result: " + new Calculator("10 + 30 - 20").calculate());
        System.out.println("================================");

        System.out.println("result: " + new Calculator("100 * 2 + 400 * 1 + 66").calculate());
        System.out.println("================================");

        System.out.println("result: " + new Calculator("10 + 30 / ((6 - 4) * 2 - 2)").calculate());
    }

}
